package cn.iocoder.yudao.module.member.controller.admin.userinformation.vo;

import cn.hutool.core.util.StrUtil;
import cn.iocoder.yudao.framework.common.DictTypeConstants;
import cn.iocoder.yudao.framework.dict.core.DictFrameworkUtils;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Schema(description = "管理后台 - 用户身份资料列 Response VO")
@Data
@ExcelIgnoreUnannotated
public class UserInformationRespVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "28375")
    @ExcelProperty("编号")
    private Long id;

    @Schema(description = "申请人")
    @ExcelProperty("申请人")
    private String proposer;

    @Schema(description = "申请人手机", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("申请人手机")
    private String proposerMobile;

    @Schema(description = "案件名称", example = "张三")
    @ExcelProperty("案件名称")
    private String caseName;

    @Schema(description = "人像面")
    @ExcelProperty("人像面")
    private String idCardPortraitFace;

//    @Schema(description = "国徽面")
//    @ExcelProperty("国徽面")
//    private String idCardNationalEmblem;

    @Schema(description = "其他文件")
    @ExcelProperty("其他文件")
    private String otherFiles;

    @Schema(description = "会员id", example = "18946")
    @ExcelProperty("会员id")
    private Long userId;
    @Schema(description = "案件类型")
    @ExcelProperty("案件类型")
    private String caseType;
    @Schema(description = "申请人企业", example = "213123")
    @ExcelProperty("申请人企业")
    @TableField(exist = false)
    private String enterprise;
    public String getCaseTypeText(){if(StrUtil.isBlank(caseType)){return "";}
    return DictFrameworkUtils.getDictDataLabel(DictTypeConstants.CASE_TYPE,caseType);}
}